package com.divo.core.util;

public final class StringUtil {

    public static final String EMPTY_STRING = "";
    
    /**
     * Make sure a string is not null.
     *
     * @param   theString Any string, possibly null
     * @return  An empty string if the original was null, else the original
     */
    public static final String notNull(String theString) {
        if (theString == null) {
            return EMPTY_STRING;
        }

        return theString;
    }
    
}
